package com.zhongli.devplatform.mapper.clazz;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhongli.devplatform.bean.Res;
import com.zhongli.devplatform.po.common.ReadClazzPO;
import com.zhongli.devplatform.query.sys.ClazzQuery;
import com.zhongli.devplatform.vo.common.ClazzVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author WuXiCheng
 * @version 1.0
 * @date 2020/7/23 10:12
 */
public interface ReadClazzMapper extends BaseMapper<ReadClazzPO> {

    List<ReadClazzPO> getAllClazzByGrade(@Param("currentUserId") Integer currentUserId, @Param("id") Integer id, @Param("schoolId") Integer schoolId);

    List<ClazzVO> getCurrentClazzList(@Param("userId") Integer userId, @Param("gradeId") Integer gradeId, @Param("gradeType") Integer gradeType);

}
